<script lang="ts" setup>
import useHomeStore from '@/store'
import Carousel from '../../../components/carousel/index.vue'
const { home } = useHomeStore()
home.getBannerList()
</script>
<template>
  <div class="home-banner">
    <!-- 轮播图 -->
    <Carousel :slides="home.bannerList" autoPlay :duration="1000"></Carousel>
  </div>
</template>

<style scoped lang="less">
.home-banner {
  width: 1240px;
  height: 500px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 98;
  background-color: pink;
  :deep(.carousel-btn.prev) {
    // width: 100%;
    // height: 100%;
    left: 270px !important;
  }
  :deep(.carousel-indicator) {
    padding-left: 250px;
  }
}
</style>
